@extends('layout.app')

@section('content')
    <h1>Articles:{{ Auth::User() -> name }}</h1>
    <hr/>

    @foreach($articles as $article)
        <h2> <a href="{{ url('articles', $article ->id) }}">{{ $article -> title }}</a></h2>
        <article>
            <div class="body">
                {{ $article -> content }}
            </div>
        </article>
    @endforeach

    
@endsection